-- GENERATED SPELL FOR [Lava Hound] --


function spell0_32237(pUnit, Event) --@Cauterizing Flames,Self--
pUnit:FullCastSpellOnTarget(59466,pUnit)
pUnit:RegisterEvent('Sorts_32237', 2000, 1)
end

function spell1_32237(pUnit, Event) --@Firebolt,n/a--
pUnit:FullCastSpellOnTarget(59468,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32237', 543, 1)
end

function spell2_32237(pUnit, Event) --@Flame Breath,n/a--
pUnit:FullCastSpellOnTarget(59469,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32237', 1500, 1)
end

function spell3_32237(pUnit, Event) --@Lava Burn,n/a--
pUnit:FullCastSpellOnTarget(54249,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32237', 27000, 1)
end

function Sorts_32237(pUnit, Event)
local choix_sorts_32237 = math.random(0, 3)
if choix_sorts_32237 == 0 then
pUnit:RegisterEvent('spell0_32237', 1, 1)
end
if choix_sorts_32237 == 1 then
pUnit:RegisterEvent('spell1_32237', 1, 1)
end
if choix_sorts_32237 == 2 then
pUnit:RegisterEvent('spell2_32237', 1, 1)
end
if choix_sorts_32237 == 3 then
pUnit:RegisterEvent('spell3_32237', 1, 1)
end
end

function mob32237_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32237', math.random(1500, 3000), 1)
end

function mob32237_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32237_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32237_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32237, 1, 'mob32237_Action')
RegisterUnitEvent(32237, 2, 'mob32237_Leave')
RegisterUnitEvent(32237, 3, 'mob32237_Kill')
RegisterUnitEvent(32237, 4, 'mob32237_Die')
